package com.booking.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @author Qikai.Lin
 * @date 2023/4/23
 */
@Getter
@AllArgsConstructor
public enum OrderPayStatusEnums {
    NOT_PAY("NOT_PAY", "未支付"),
    BOOKING_PAYED("BOOKING_PAYED","已付定金"),
    PAYED("PAYED", "已支付全款"),
    RETURNED("RETURNED", "已退款"),
    ;
    private final String status;
    private final String msg;
    public static String getMsgByStatus(String status) {
        for (OrderPayStatusEnums enums : OrderPayStatusEnums.values()) {
            if (enums.getStatus().equals(status)) {
                return enums.getMsg();
            }
        }
        return null;
    }
}
